package io;

import java.util.Date;

public class Test {
    public static void main(String[] args) {
        long time = System.currentTimeMillis();
        System.out.println(time);
        Date now = new Date(time);
        System.out.println(now);
        time = time / 1000 / 60 / 60 / 24 / 365;
        System.out.println(time);
        long max = Long.MAX_VALUE;
        max = max / 1000 / 60 / 60 / 24 / 365;
        System.out.println("公元:" + (1970 + max));
    }
}
